package com.yilin.medical.adapter;

import java.util.List;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.yilin.medical.R;
import com.yilin.medical.model.BingLiDetailsBean;
import com.yilin.medical.model.HuiYiBean;
import com.yilin.medical.model.KeChengDetailsCommentBean;
import com.yilin.medical.model.ZhongLiuBean;

/**
 * 肿瘤adapter
 * 
 * @author lijianqun
 * 
 */
public class HuiYiAdapter extends BaseAdapter {
	private Context context;
	private List<HuiYiBean> list;

	public HuiYiAdapter(Context context,
			List<HuiYiBean> list) {
		super();
		this.context = context;
		this.list = list;
	}

	@Override
	public int getCount() {
		return list.size();
	}

	@Override
	public Object getItem(int position) {
		return null;
	}

	@Override
	public long getItemId(int position) {
		return 0;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		ViewHolder holder = null;
		if (convertView == null) {
			holder = new ViewHolder();
			convertView = View.inflate(context,
					R.layout.listitem_huiyi, null);
			holder.iv = (ImageView) convertView.findViewById(R.id.iv);
			holder.tv_name = (TextView) convertView.findViewById(R.id.tv_name);
			holder.tv_describe = (TextView) convertView
					.findViewById(R.id.tv_describe);
			convertView.setTag(holder);
		} else {
			holder = (ViewHolder) convertView.getTag();
		}
		return convertView;
	}

	class ViewHolder {
		ImageView iv;
		TextView tv_name,tv_describe;

	}

}
